package com.xiaolin.oa.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaolin.oa.model.entity.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author xiaolin
 * @since 2024-07-29
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {

    List<SysRole> getRoleList(SysRole role);

    List<String> getUserRoles(@Param("userId") Integer userId);
}
